//
//  User.m

//

#import "User.h"
 
NSString* const kLoginData=@"email=%@&pass=%@";
NSString* const kUpdateData=@"name=%@&dob=%@&gender=%@&email=%@&password=%@&college=%@&university=%@&course=%@&year=%@&degree=%@&modules=%@&status=%@&thumb=%@";
NSString* const kRegisterData=@"usertype=C&title=Mr.&firstname=%@&lastname=%@&b_address=%@&b_city=%@&b_state=%@&b_country=%@&b_zipcode=%@&phone=%@&email=%@&uname=%@&passwd1=%@&passwd2=%@";

@implementation User

@synthesize name=name_;
@synthesize dob=dob_;
@synthesize gender=gender_;
@synthesize email=email_;
@synthesize password=password_;
@synthesize college=college_;
@synthesize university=university_;
@synthesize course=course_;
@synthesize year=year_;
@synthesize degree=degree_;
@synthesize module=module_;
@synthesize user_id=user_id_;
@synthesize relationship=relationship_;
@synthesize thumb = thumb_;
- (NSString*) loginData
{
	return [NSString stringWithFormat:kLoginData, email_,password_];
}

- (NSString*) updateData
{
	return [NSString stringWithFormat:kUpdateData, name_,dob_,gender_,email_,password_,college_,university_,course_,year_,degree_,module_,relationship_,thumb_];
}

@end
